import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/file_statistics_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/file_statistics_entity.g.dart';

@JsonSerializable()
class FileStatisticsEntity {
  FileStatisticsEntity();

  factory FileStatisticsEntity.fromJson(Map<String, dynamic> json) => $FileStatisticsEntityFromJson(json);
  FileStatisticsCertificate? certificate = FileStatisticsCertificate();
  FileStatisticsCompliance? compliance = FileStatisticsCompliance();
  FileStatisticsProjectSame? projectSame = FileStatisticsProjectSame();

  Map<String, dynamic> toJson() => $FileStatisticsEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class FileStatisticsCertificate {
  FileStatisticsCertificate();

  factory FileStatisticsCertificate.fromJson(Map<String, dynamic> json) => $FileStatisticsCertificateFromJson(json);
  int? dueNum = 0;
  int? expirationNum = 0;
  String? id = '';
  int? normalNum = 0;

  Map<String, dynamic> toJson() => $FileStatisticsCertificateToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class FileStatisticsCompliance {
  FileStatisticsCompliance();

  factory FileStatisticsCompliance.fromJson(Map<String, dynamic> json) => $FileStatisticsComplianceFromJson(json);
  int? dueNum = 0;
  int? expirationNum = 0;
  String? id = '';
  int? normalNum = 0;

  Map<String, dynamic> toJson() => $FileStatisticsComplianceToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class FileStatisticsProjectSame {
  FileStatisticsProjectSame();

  factory FileStatisticsProjectSame.fromJson(Map<String, dynamic> json) => $FileStatisticsProjectSameFromJson(json);
  int? cancel = 0;
  int? construction = 0;
  int? design = 0;
  int? trialProduction = 0;

  Map<String, dynamic> toJson() => $FileStatisticsProjectSameToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
